﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="new.aspx.cs"
    Inherits="AnyOffice.general.Event.manage._new" %>

<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
    <title>新建安全信息</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="C#">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    <script language="JavaScript">
        function CheckForm() {
            if (document.Form1.txtSubject.value == "") {
                alert("安全信息的标题不能为空！");
                document.Form1.txtSubject.focus();
                return (false);
            }

            var oEditor = FCKeditorAPI.GetInstance('txtContent');
            if (oEditor.GetHTML() == "") {
                alert("安全信息的内容不能为空！");
                return (false);
            }
            return true;
        }

        function CheckFile() {
            if (document.Form1.fileAttach.value == "") {
                alert("请选择附件！");
                return (false);
            }
            return true;
        }		
    </script>
</head>
<body class="bodycolor" topmargin="5">
    <form id="Form1" method="post" runat="server">
    <asp:Panel ID="pnlMain" runat="server">
        <table class="small" cellspacing="0" cellpadding="3" width="90%" border="0">
            <tr>
                <td class="Big">
                    <img src="/images/notify_new.gif" align="absMiddle"><span class="big3"> 新建安全信息</span>
                </td>
            </tr>
        </table>
        <br>
        <table class="small" cellspacing="1" cellpadding="2" width="90%" align="center" border="0"
            bgcolor="#000000">
            <tr>
                <td class="TableData" nowrap>
                    标题：
                </td>
                <td class="TableData">
                    <asp:TextBox ID="txtSubject" runat="server" Columns="50" MaxLength="200" CssClass="BigInput"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    附件：
                </td>
                <td class="TableData">
                    <asp:Panel ID="pnlAttach" runat="server" Visible="False">
                        <asp:ListBox ID="ltbFileList" runat="server" Rows="1"></asp:ListBox>
                        <asp:Button ID="btnRemoveFile" runat="server" CssClass="SmallButton" Text="删除" OnClick="btnRemoveFile_Click">
                        </asp:Button>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    附件上传：
                </td>
                <td class="TableData">
                    <input class="SmallInput" id="fileAttach" type="file" size="26" name="fileAttach"
                        runat="server">
                    <asp:Button ID="btnAddFile" runat="server" CssClass="SmallButton" Text="添加" OnClick="btnAddFile_Click">
                    </asp:Button>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    提醒：
                </td>
                <td class="TableData">
                    <asp:CheckBox ID="ckbSms" runat="server" Text="使用内部短信提醒用户" Checked="True"></asp:CheckBox>
                    <asp:CheckBox ID="ckbMobile" runat="server" Visible="False" Text="使用手机短信提醒用户"></asp:CheckBox>
                </td>
            </tr>
            <tr>
                <td class="TableData" nowrap>
                    详细内容：
                </td>
                <td class="TableData" colspan="1">
                    <fckeditorv2:FCKeditor ID="txtContent" runat="server" Width="100%" Height="350px">
                    </fckeditorv2:FCKeditor>
                </td>
            </tr>
            <tr class="TableControl" align="center">
                <td nowrap colspan="2">
                    <asp:Button ID="btnSubmit" runat="server" CssClass="BigButton" Text="发布" OnClick="btnSubmit_Click">
                    </asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
                    <input class="BigButton" onclick="location='index1.aspx'" type="button" value="返回">
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Literal ID="litMessage" runat="server"></asp:Literal>
    <br>
    <br>
    </form>
</body>
</html>
